/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: AppleFactory
 * Author:   zhouheng
 * Date:     2019/5/1 11:20
 * Description: 苹果工厂
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.patterns.com.zhouh.create.factory.factoryMethod;

import com.zhouh.patterns.com.zhouh.entity.Fruit;
import com.zhouh.patterns.com.zhouh.entity.fruit.Apple;
import org.springframework.stereotype.Component;

/**
 * 〈一句话功能简述〉<br> 
 * 〈苹果工厂〉
 *
 * @author zhouheng
 * @create 2019/5/1
 * @since 1.0.0
 */
@Component
public class AppleFactory implements FruitFactory {
    @Override
    public Fruit getFruit() {
        return new Apple();
    }
}